package com.lys.blog.controller;

import com.lys.blog.dao.pojo.Student;
import com.lys.blog.vo.Result;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class TestController {

    @RequestMapping("test")
    public Result test() {
        return Result.success(null);
    }

    @GetMapping("/stu")
    public Result getStu() {
        Student student = new Student();
        student.setName("liming");
        student.setAge(22);
        student.setId(1);
        return Result.success(student);
    }
}
